CRPEJob::SetMargins

Use CRPEJob::SetMargins to set the page margins for the print job. Use this method any time that you want to allow the user to change margins.

Syntax
BOOL SetMargins (
        short left,
        short right,
        short top,
        short bottom );
Parameters

left

Specifies the left margin in twips.

right

Specifies the right margin in twips.

top

Specifies the top margin in twips.

bottom

Specifies the bottom margin in twips.

Returns
Remarks

For any of the parameters, PM_SM_DEFAULT can be used to specify that the report use default printer margins.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com